<!doctype html>
<script>
if (window.parent === window)
  document.title = "Loaded as main frame";
else
  window.parent.postMessage('Loaded as iframe', '*');
</script>
